const { initPage } = require('./src/utils/initPage')
const steps = require('./src/config/steps');

(async () => {

  const { type, click } = await initPage()

  for (let step of steps) {
    const fn = step.type === 0 ? click : type
    await fn(step.xPath, step.val)
  }

})();